home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung CD 2 (Tewi)(1994).iso / doc / bildform / rle / rle.txt
Text File  |  1994-06-30  |  8KB  |  128 lines

  1.  
  2. 101 things to do with .RLE
  3. (But did not know what .RLE was!)
  4.  
  5.  By Chrisdos CBIG Sig Sysop
  6.     [76703,717]
  7.  
  8. (c) 1986 by Chrisdos. All rights reserved.
  9.  
  10.  
  11. RLE - Run Lenght Encoding.
  12.     A method of encoding HiResolution bit mapped images so as to make it
  13. possible to up and download the image to different brands of computers.
  14.     There are a number of computers that can decode .RLE images, and
  15. programs for others are being developed. All that is required is that
  16. the computer have a HiRes screen of at least 256 pixels wide by 192 down.
  17. .RLE images are in black and white, so color is not important. This provides
  18. for compatability on a wide range of machines.
  19.     The largest use of .RLE images at this point in time seems to be
  20. on Commodore 64s, then TRS80 Color Computers, and others. There was, untill
  21. recently, no software avalible for most machines to produce an .RLE image, but
  22. this too is quickly being rectified.
  23.     I will cover some basics of .RLE here, refering to Commodore 64
  24. programs mostly as that as the computer I use most. I am sure that other 
  25. computers will have programs that do the same things avalible.
  26.  
  27.     RLE and Compuserve
  28.     ------------------
  29.     .RLE was first used to produce the HiRes weather maps (GO AWX-4) and
  30. later for the CB Users Pictres (GO CB-65) and FBI 10 Most Wanted list (GO TEN)
  31. and other images. The first decoding programs were for off line viewing on
  32. most computers, untill the various VIDTEX programs could be updated to
  33. do the graphics.
  34.     When viewed off line, the .RLE data was captured in a ram buffer and
  35. saved to disk, to be processed later by a displayer program. This was a bit
  36. round-a-bout to say the least. I believe VIDTEX for the COCO was the first to
  37. be able to display the .RLE images. Then came CBterm/C64 for the Commodore 64.
  38. (CBterm is avalible in DL2 of the CBIG SIG, GO CBIG) Then VIDTEX 4.2 also
  39. for the Commodore. There are also display programs, both for sale and public
  40. for just about all the other popular computers.
  41.     All the original images were provided by Compuserve, as there were
  42. really no other programs to produce the .RLE information, and as such, there
  43. were no databases of .RLE files to get at, you had to READ the image, you
  44. could not really get to the file to, say, download it. But as programs became
  45. avalible to produce your own .RLE images, users began to upload them to Forum
  46. databases, where that could either be READ or DOWNLOADED. One of the first
  47. such programs for the C64 was HR2RLE. (Avalible in DL2 of CBIG.) With this
  48. program, users could convert their own pictures and upload them to share with
  49. others. Of course, a corrisponding RLE2HR program was provided to check the
  50. .RLE file produced to see what the image would look like in this format.
  51. Again, programs for other compters are avalible now, or soon will be.
  52.     Now viewing the files is fairly eazy, but where do you get the original
  53. pictures to convert?? Well, on the C64 there are 2 main formats used most
  54. often for hires images, this is Doodle and Koala. Almost all Doodle Images
  55. can be translated directly to .RLE format. Koala take a little more work,
  56. as it is a multicolor image, and some of the color must be converted to
  57. black and white to get a good image. (Programs to do all kinds of conversions
  58. are avalible in DL2 of CBIG. Do a BRO /KEY KOALA or BRO /KEY DOODLE)
  59. So if you had an image you drew, you can usally find a program that will
  60. get it into .RLE format. Not to be left out, some people use video digitizers
  61. to produce an image, and then convert that.
  62. There are even programs that will take images drawn on other compters and
  63. directly translate it into a file compatable with your computer, that you can
  64. then translate into .RLE that is even more compatable with other compters.
  65. (See COCO64 in DL2 CBIG) And if that were not enugh, programs are even being
  66. created to convert all the old ASCII Line Printer Art files into High Resolution
  67. screen images. (LPT2HR, et al.) When things are done right, a program also 
  68. will reverse what it has done so it can convert in the oppisite direction as 
  69. well. All this leads back to the .RLE file again, once an image is converted
  70. to the .RLE file, it can be uploaded to a Forums database,  there it can
  71. either be Downloaded, if you wish to work on it off line, or READ if your
  72. terminal program will display the image directly. 
  73.     A .RLE image ir composed of a control character header, that tells the
  74. terminal program what type of file follows (for there is also MEDIUM resoltion)
  75. and then a string of ASCII characters, each one representing the number of
  76. pixels to set or not. At the end is another control string to turn graphics
  77. off on your computer.   .RLE is relitivily easy to decode, and there is 
  78. a primer on doing it on your compter in basic to be found in dl2 of CBIG. If
  79. a display program does not already exsist for your machine, this is the place
  80. to start in writing your own. More .RLE information can also be had by doing
  81. a GO VIDTEX and reading the tech library there.
  82.     So now that you have created or downloaded a .RLE file and have
  83. displayed it, what good is it? Well most programs should allow you to dump the
  84. image to a printer or disk. If you can dump to disk, it is usally in one
  85. of 2 ways. You save the .RLE data itself, or you save the hiRes screen in
  86. a usable format. On  a CoCo, the screen is saved in a BIN dump format most 
  87. often, that can be redisplayed easyly. On a C64, depending on the program
  88. involved, images can be saved in Doodle or Koala format, and used by these
  89. programs, or other utilities. Again, other program exsist for other machines,
  90. are are at least in the works. (See the file CBTERM.TXT in dl2 of CBIG for
  91. a full index to CBterm and RLE conversion programs for the C64 compter. Also
  92. there are programs for other computers as well. If you know of a .RLE program
  93. I dont have, pleae upload it there.)
  94. An example of a .RLE save would be VIDTEX 4.2 for the C64, it does not save the
  95. screen, but records the RLE data in its RAM buffer, and will save that to
  96. disk. Then it can be reloaded into VIDTEX from disk, and redisplayed. An
  97. overlay utility has been written for Vidtexx 4.2 that will allow direct
  98. saving of the HiRes screen, and this is a more usefull item and you can
  99. save in a format compatable with drawing programs. (VTXDD2 and VTXKO2)
  100.  
  101.     Now, printing the image is what its all about isn't it?
  102. It's nice to view the image, but its better to print it for later display.
  103. This assumes you have a printer of course, and it is capable of doing
  104. HiRes graphics. Some terminal/display programs allow for direct online dumping
  105. of the HiRes screen (CBterm/c64 for example) while others reqire you
  106. to save the image to disk and print it with another program. Either way, there
  107. are programs that will allow this on most machines.
  108. (Or at least being worked on, Check with the SYSOP of your machines' Forum.)
  109. The latest advent in printing, is for those users that do not have a printer
  110. that can do HiRes graphics directly, and that is a program that will produce
  111. an ASCII line printer file directly from a HiResolution screen. This file
  112. can be printer on any printer then. So things have come full circle !
  113.  
  114. As I stated, programs are being develped to do new things with .RLE graphics
  115. on most computers. As a byproduct, commnications and utility programs are also
  116. being improved.  .RLE was made to be compatable with a wide variety of machines,
  117. and the list is growing each day. There is now even a full blown Forum
  118. devited to .RLE graphics (GO PICS) and DL3 of CBIG contains the largest
  119. collection of .RLE images at this time. (over 75 and growning, contribtions
  120. welcome!)
  121. There is no end to .RLE graphics, what started at a means of showing off the
  122. Weater Radar Maps has grown into a huge picture and program database!
  123.  
  124.     For more help with program for your brand of computer, contact the
  125. SYSOP of your machine's Forum, or the .RLE Picture Support SIG, or Browse
  126. DL2 of CBIG, you never know what you can find there.
  127.  -Chrisdos
  128.